﻿using Chronozoom.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace ChronozoomSVC
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IChronozoom
    {

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        List<Chronozoom.Entities.Timeline> Get();

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        List<Chronozoom.Entities.Threshold> GetThresholds();


        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        List<Chronozoom.Entities.SearchResult> Search(string s);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        string GetBibliographyRelay(string exhibitID);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        string SearchRelay(string s);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        List<Chronozoom.Entities.Tour> GetTours();

        void LoadBookmark(Chronozoom.Entities.Tour tour);
    }
}